// components/Modal/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    AnswerShow:Boolean,
    answer:Object
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    bindInputValue1:function(e){
      //console.log(e)
    },
    CloseModal:function(e){
      this.setData({
        AnswerShow:false
      })
    },
    formSubmit: function (e) {

      // console.log(e.detail.value)
      let val = e.detail.value
      if (val.return_name != '' || val.return_phone != '' || val.return_wecaht != ''){
        this.triggerEvent('inputNum', { data: e.detail.value, AnswerShow:false}, {})
      }else{
        wx.showToast({
          title: '请填写内容',
        })
      }
    },
  }
})
